package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.ProjectPackageInvestOrderDetail;
import com.niiwoo.civet.trade.dto.ProjectInvestOrderListDTO;
import com.niiwoo.civet.trade.dto.request.intelligenceInvest.IntelligenceDetailListRequestDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ProjectPackageInvestOrderDetailMapperExt extends ProjectPackageInvestOrderDetailMapper {

    /**
     * 包订单ID查询对应的标订单ID
     */
    List<ProjectPackageInvestOrderDetail> selectByPackageInvestOrderId(Long packageInvestOrderId);


    /**
     * 分页查询包订单明细列表(标订单列表)
     */
    List<ProjectInvestOrderListDTO> projectOrderListByPackageInvestOrderId(IntelligenceDetailListRequestDTO requestDTO);

    /**
     * 分页查询包订单明细列表总记录数
     */
    Integer projectOrderCountByPackageInvestOrderId(IntelligenceDetailListRequestDTO requestDTO);

    ProjectPackageInvestOrderDetail selectByInvestOrderId(@Param("investOrderId") Long investOrderId);

}